import 'package:dio/dio.dart';
import 'package:wallpaper_app/http/dio_instance.dart';

Future<Response> getBocchiList({String type = 'pc'}) {
  String url =
      'https://gitee.com/zsnoin-can/bocchi-serve/raw/master/mobile/m1.json';
  if (type == 'pc') {
    url = 'https://gitee.com/zsnoin-can/bocchi-serve/raw/master/pc/p1.json';
  }
  return DioInstance.instance().get(path: url);
}

Future<Response> getBocchiVideoList() {
  String url =
      'https://gitee.com/zsnoin-can/bocchi-serve/raw/master/video/v1.json';
  return DioInstance.instance().get(path: url);
}
